<template>
  <div class="jifen">
    微社区
      {{this.$store.state.isHeader}}
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "wei",
  data() {
    return {};
  },
  mounted() {
    this.$store.state.isHeader = false;
    console.log('进入')
    console.log(this.$store.state.isHeader)
  },
    destroyed() {
    this.$store.state.isHeader = true;
  },
    computed:{
    ...mapState({
      isHeader:'isHeader'
    })
  },
};
</script>

<style scoped lang="less">
</style>

